<% content_for :title do %>Recherche par tag [<%=h @tag.name %>]<% end %>
<div class="post">
  <h1>Photos pour le tag [<%=h @tag.name %>]</h1>
  <% @tag.images.each do |image| %>
    <span><%= link_to "<img src='#{image_content_url(image, :width => 80, :height => 50 )}' alt='#{h image.description}' />" , image %></span>
  <% end %>
</div>
<br />
<h1>Articles pour le tag [<%=h @tag.name %>]</h1>
<% @tag.posts.each do |post| %>
  <div class="post">
    <h2><%=h post.title %></h2>
    <p><%=h truncate(post.body, :length => 50) %></p>
    <p class="post-footer" align="right" >
      <%= link_to "Lire l'article", post, :class => "readmore" %>
    </p>
  </div>
<% end %>
<br class="clear"/>
